<template>
  <div>
      grandson
      <ul>
        <li v-for="(item,index) in arr">{{ item }}</li>
      </ul>
  </div>
</template>

<script setup>
import { inject } from 'vue'
const arr = inject('abc');
console.log('arr',arr);
</script>
<style scoped>

</style>